<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>仓库编辑</title>
</head>
<body>
	<ul class="breadcrumb">
		<c:if test="${t.id==null }">
			<li>仓库添加</li>		
		</c:if>
		<c:if test="${t.id!=null }">
			<c:if test="${status==view}">
				<li>仓库修改</li>				
			</c:if>
			<c:if test="${status!=view}">
				<li>仓库查看</li>
			</c:if>
		</c:if>
	</ul>
	<form id="form" action="storem/store?query" class="form-inline well">
		<input name="id" type="hidden" value="${t.id }">
		<label class="text">
			名称:
			<input class="input-medium" type="text" name="name" value="${t.name }">
		</label>
		<label class="text">
			型号:
			<input class="input-medium" type="text" name="type" value="${t.type }">
		</label>
		<label class="text">
			品牌:
			<input class="input-medium" type="text" name="band" value="${t.band }">
		</label>
		<label class="text">
			类别:
			<input class="input-medium" type="text" name="kind" value="${t.kind }">
		</label>
		<label class="text">
			数量:
			<input class="input-medium" type="text" name="amount" value="${t.amount }">
		</label>
		<label class="text">
			价格:
			<input class="input-medium" type="text" name="price" value="${t.price }">
		</label>
		<label class="textarea">
			备注:
			<textarea rows="3" cols="10" name="remark">${t.remark }</textarea>
		</label>
		<div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary" onclick="form_submit('storem/store?save')">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('storem/store?list')">返回</a>
                </div>
         </div>
	</form>
</body>
</html>